home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / ToolEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  40.5 KB  |  1,116 lines  |  [TEXT/MPS ]

  1. ; Version: 3.28
  2. ; Created: Friday, October 20, 1989 at 10:02:20 PM
  3. ;
  4. ; File: ToolEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1991
  8. ; All Rights Reserved
  9. ;
  10. ;___________________________________________________________________________
  11.  
  12.     IF &TYPE('__IncludingToolEqu__') = 'UNDEFINED' THEN
  13. __IncludingToolEqu__    SET    1
  14.  
  15.     IF &TYPE('__IncludingTraps__') = 'UNDEFINED' THEN  ; get defintion of _CommToolboxDispatch
  16.     INCLUDE 'Traps.a'
  17.     ENDIF
  18.  
  19.                   IF          (&TYPE('wholeTools') = 'UNDEFINED') THEN
  20. wholeTools        EQU         1
  21.                   ENDIF
  22.  
  23.  
  24. ;+ Resource Manager
  25.  
  26. ; Resource attributes
  27.  
  28. resSysRef         EQU         7                         ; reference to system/local reference
  29. resSysHeap        EQU         6                         ; In system/in application heap
  30. resPurgeable      EQU         5                         ; Purgeable/not purgeable
  31. resLocked         EQU         4                         ; Locked/not locked
  32. resProtected      EQU         3                         ; Protected/not protected
  33. resPreload        EQU         2                         ; Read in at OpenResource?
  34. resChanged        EQU         1                         ; Existing resource changed since last update
  35. rcbMask           EQU         $FD                       ; Must preserve ResChanged over _ResAttrs
  36.  
  37. ; Map attributes
  38.  
  39. mapReadOnly       EQU         7                         ; is this file read-only?
  40. mapCompact        EQU         6                         ; Is a compact necessary?
  41. mapChanged        EQU         5                         ; Is it necessary to write map?
  42.  
  43. ; Resource Manager Globals
  44.  
  45. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  46. SysMapHndl        EQU         $A54                      ; system map [handle]
  47. SysMap            EQU         $A58                      ; reference number of system map [word]
  48. CurMap            EQU         $A5A                      ; reference number of current map [word]
  49. ResReadOnly       EQU         $A5C                      ; Read only flag [word]
  50. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  51. ResErr            EQU         $A60                      ; Resource error code [word]
  52. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  53. SysResName        EQU         $AD8                      ; Name of system resource file [STRING[19]]
  54.  
  55. ;new Resource Manager stuff
  56.  
  57. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  58. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  59.  
  60. ; the following word values are to be placed into the
  61. ; word located at RomMapInsert
  62.  
  63. MapTrue           EQU         $FFFF                     ; link in ROM map with resload true 
  64. MapFalse          EQU         $FF00                     ; link in ROM map with resload false
  65.  
  66. ;+ Font Manager
  67.  
  68.  
  69. ; Standard font ID's
  70.  
  71. sysFont           EQU         0                         ; system font ID
  72. applFont          EQU         1                         ; application font ID
  73. newYork           EQU         2                         ; standard release fonts
  74. geneva            EQU         3
  75. monaco            EQU         4
  76. venice            EQU         5
  77. london            EQU         6
  78. athens            EQU         7
  79. sanFran           EQU         8
  80. toronto           EQU         9
  81. cairo             EQU         11
  82. losAngeles        EQU         12
  83. times             EQU         20
  84. helvetica         EQU         21
  85. courier           EQU         22
  86. symbol            EQU         23
  87. mobile            EQU         24
  88.  
  89. ; Font Manager Globals
  90.  
  91. ApFontID          EQU         $984                      ; resource ID of application font [word]
  92. FMDefaultSize     EQU         $987                      ; default size [byte]
  93. CurFMInput        EQU         $988                      ; quickdraw FMInput Record [pointer]
  94. FMgrOutRec        EQU         $998                      ; quickdraw FontOutput Record [pointer]
  95. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  96.  
  97. ;new FONT manager stuff
  98.  
  99. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  100. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  101. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  102. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  103. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  104. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  105. FDevDisable       EQU         $BB3                      ; (byte) $FF to disable device-defined style extra
  106. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  107. FONDID            EQU         $BC6                      ; (word) ID of last font def record
  108. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  109. UsedFWidths       EQU         $BF5                      ; (byte) flag saying if we used fract widths
  110. FScaleHFact       EQU         $BF6                      ; (long) horz. font scale factor
  111. FScaleVFact       EQU         $BFA                      ; (long) vertical font scale factor 
  112.  
  113. ;+ Window Manager
  114.  
  115. ; system windows have negative kinds
  116. dialogKind        EQU         2                         ; dialog windows
  117. userKind          EQU         8                         ; this and above numbers are for user
  118.  
  119. ; Values returned by window definition function's hit routine
  120.  
  121. wNoHit            EQU         0                         ; not in window at all
  122. wInContent        EQU         1                         ; in content area
  123. wInDrag           EQU         2                         ; in drag area
  124. wInGrow           EQU         3                         ; in grow area
  125. wInGoAway         EQU         4                         ; in go away area
  126. wInZoomIn         EQU         5                         ; in zoom in
  127. wInZoomOut        EQU         6                         ; in zoom out
  128.  
  129. ; FindWindow Return Codes
  130.  
  131. inDesk            EQU         0                         ; not in any window
  132. inMenuBar         EQU         1                         ; in the menu bar
  133. inSysWindow       EQU         2                         ; in a system window
  134. inContent         EQU         3                         ; in content area of user window
  135. inDrag            EQU         4                         ; in drag area of user window
  136. inGrow            EQU         5                         ; in grow area of user window
  137. inGoAway          EQU         6                         ; in go away area of user window
  138. inZoomIn          EQU         7                         ; in zoom in part code
  139. inZoomOut         EQU         8                         ; in zoom out part code
  140.  
  141. ; Resource ID's for windows
  142.  
  143. deskPatID         EQU         16                        ; desk pattern PAT ID
  144. documentProc      EQU         0                         ; standard document WDEF ID
  145. dBoxProc          EQU         1                         ; dialog box (document without titleBar) WDEF ID
  146. plainDBox         EQU         2                         ; no border WDEF ID
  147. altDBoxProc       EQU         3                         ; no shadow or title WDEF ID
  148. noGrowDocProc     EQU         4                         ; no grow area WDEF ID
  149. movableDBoxProc    EQU            5                        ; movable dialog box WDEF ID
  150. zoomDocProc       EQU         8                         ; with zoom box WDEF ID
  151. zoomNoGrow        EQU         12                        ; zoom with no grow box WDEF ID
  152. rDocProc          EQU         16                        ; document with rounded corners WDEF ID
  153.  
  154. ; Window Data Structure Definition
  155.  
  156. windowPort        EQU         0                         ; grafPort [108 bytes]
  157. windowKind        EQU         $6C                       ; type of window [word]
  158. wVisible          EQU         $6E                       ; visible flag [byte]
  159. wHilited          EQU         $6F                       ; select (hilite) flag [byte]
  160. wGoAway           EQU         $70                       ; has go away button [byte]
  161. wZoom             EQU         $71                       ; has zoom box [byte]
  162. structRgn         EQU         $72                       ; structure region of window [Handle]
  163. contRgn           EQU         $76                       ; content region of window [Handle]
  164. updateRgn         EQU         $7A                       ; update region of window [Handle]
  165. windowDef         EQU         $7E                       ; window definition procedure [Handle]
  166. wDataHandle       EQU         $82                       ; window proc-defined data [Handle]
  167. wTitleHandle      EQU         $86                       ; title string [Handle]
  168. wTitleWidth       EQU         $8A                       ; width in pixels of title string [word]
  169. wControlList      EQU         $8C                       ; control list of this window [handle]
  170. nextWindow        EQU         $90                       ; next window in z-ordered list [pointer]
  171. windowPic         EQU         $94                       ; picture handle for updates [handle]
  172. wRefCon           EQU         $98                       ; application use [long]
  173. windowSize        EQU         $9C                       ; size of window data structure
  174. WStateData        RECORD      0
  175. userState         DS.L        2                         ;Rect
  176. stdState          DS.L        2                         ;Rect
  177.                   ENDR
  178.  
  179.  
  180.  
  181. ; Window Manager Globals
  182.  
  183. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  184. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  185. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  186. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  187. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  188. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  189. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  190. DeskPattern       EQU         $A3C                      ; desk pattern [8 bytes]
  191. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  192. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  193.  
  194.  
  195.  
  196. ;+ Menu Manager
  197.  
  198. ; "ASCII" marks for menu characters
  199.  
  200. noMark            EQU         0
  201. commandMark       EQU         $11                       ; command fan (cloverleaf)
  202. checkMark         EQU         $12                       ; check mark for menus
  203. diamondMark       EQU         $13                       ; diamond mark for menus
  204. appleMark         EQU         $14                       ; desk ornament menu title
  205.  
  206. ; MenuList Data Structure Definition -- one per menuBar
  207.  
  208. ; 6 Byte header
  209. lastMenu          EQU         0                         ; number of bytes in this menuList [word]
  210. lastRight         EQU         2                         ; h coordinate of 1st free point in menuBar [word]
  211. ; one of the following per menu
  212. menuoH            EQU         0                         ; menu handle [handle]
  213. menuLeft          EQU         4                         ; coordinate of left edge of menu [word]
  214.  
  215. ; MenuInfo Data Structure -- one per menu
  216.  
  217. menuID            EQU         0                         ; unique ID for each menuBar [word]
  218. menuWidth         EQU         2                         ; menu width [word]
  219. menuHeight        EQU         4                         ; menu height [word]
  220. menuDefHandle     EQU         6                         ; menu definition proc [handle]
  221. menuEnable        EQU         $A                        ; enable flags, one bit/item [long]
  222. menuData          EQU         $E                        ; menu item string [STRING]
  223. menuBlkSize       EQU         $E                        ; size of a menu block plus dataString
  224.  
  225. ; MenuString Data Structure -- one per menu item
  226.  
  227. itemIcon          EQU         0                         ; icon byte
  228. itemCmd           EQU         1                         ; apple (command key) byte
  229. itemMark          EQU         2                         ; checkmark character byte
  230. itemStyle         EQU         3                         ; style byte
  231.  
  232. ; Menu Manager Globals
  233.  
  234. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  235. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  236. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  237. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  238. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  239.  
  240. ;new Menu Manager stuff
  241.  
  242. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  243.  
  244. ;+ Control Manager
  245.  
  246. ; Part Codes
  247.  
  248. inButton          EQU         10                        ; in a push button
  249. inCheckBox        EQU         11                        ; in a checkBox button
  250. inUpButton        EQU         20                        ; in up button area of a dial
  251. inDownButton      EQU         21                        ; in down button area of a dial
  252. inPageUp          EQU         22                        ; in page up (gray) area of a dial
  253. inPageDown        EQU         23                        ; in page down (gray) area of a dial
  254. inThumb           EQU         129                       ; in thumb area of a dial
  255.  
  256. ; Constants for axis parameter of DragGrayRgn and DragControl
  257.  
  258. noConstraint      EQU         0                         ; free form dragging
  259. hAxisOnly         EQU         1                         ; horizontally only
  260. vAxisOnly         EQU         2                         ; vertically only
  261.  
  262. ; Resource ID's for controls
  263.  
  264. pushButProc       EQU         0                         ; rounded-corner pushButtons CDEF ID
  265. checkBoxProc      EQU         1                         ; check-box type buttons CDEF ID
  266. radioButProc      EQU         2                         ; radio buttons CDEF ID
  267. scrollBarProc     EQU         16                        ; scrollBar CDEF ID
  268. useWFont          EQU         8                         ; add this to get window font CDEF ID
  269. sBarPatID         EQU         17                        ; scrollBar pattern ID
  270.  
  271.  
  272. ; Popup Control Constants 
  273. popupMenuCDEFproc        EQU    1008                    ; popup menu CDEF ID
  274.  
  275. ; Popup Variation Codes 
  276. popupFixedWidth            EQU    $0001                    ; size will not vary with menu items
  277. popupReserved            EQU    $0002                    ; was popupUseCQD
  278. popupUseAddResMenu        EQU    $0004                    ; menu = AddResMenu(CNTL's refCon)
  279. popupUseWFont            EQU    $0008                    ; use this for window font/size/face
  280.  
  281. ; Popup Title characteristics
  282. popupTitleBold            EQU    $00000100                ; styles for the popup title
  283. popupTitleItalic        EQU    $00000200
  284. popupTitleUnderline        EQU    $00000400
  285. popupTitleOutline        EQU    $00000800
  286. popupTitleShadow        EQU    $00001000
  287. popupTitleCondense        EQU    $00002000
  288. popupTitleExtend        EQU    $00004000
  289. popupTitleNoStyle        EQU    $00008000
  290.  
  291. popupTitleLeftJust        EQU    $00000000                ; justification for the title
  292. popupTitleCenterJust    EQU    $00000001
  293. popupTitleRightJust        EQU    $000000FF
  294.  
  295.  
  296. ; Control Template
  297.  
  298. nextControl       EQU         $0                        ; next control in the list [handle]
  299. contrlOwner       EQU         $4                        ; owning window [pointer]
  300. contrlRect        EQU         $8                        ; bounding rectangle [8 bytes]
  301. contrlVis         EQU         $10                       ; visible state [byte]
  302. contrlHilite      EQU         $11                       ; hilite state [byte]
  303. contrlValue       EQU         $12                       ; current value of control [word]
  304. contrlMin         EQU         $14                       ; minimum value of control [word]
  305. contrlMax         EQU         $16                       ; maximum value of control [word]
  306. contrlDefHandle   EQU         $18                       ; control definition procedure [handle]
  307. contrlData        EQU         $1C                       ; data for definition proc [handle]
  308. contrlAction      EQU         $20                       ; local actionProc [pointer]
  309. contrlRFcon       EQU         $24                       ; refcon defined by application [long]
  310. contrlTitle       EQU         $28                       ; title string [STRING]
  311. contrlSize        EQU         $28                       ; size of control data structure less title
  312.  
  313. ; Control Manager Globals
  314.  
  315. DragPattern       EQU         $A34                      ; DragTheRgn pattern [8 bytes]
  316. DragFlag          EQU         $A44                      ; implicit parameter to DragControl [word]
  317. CurDragAction     EQU         $A46                      ; implicit actionProc for dragControl [pointer]
  318.  
  319.  
  320. ;+ Text Edit
  321.  
  322.  
  323. ; Justification styles
  324.  
  325. teJustLeft        EQU         0                         ; left justified text
  326. teJustRight       EQU         -1                        ; right justified text
  327. teJustCenter      EQU         1                         ; center justified text
  328. teForceLeft       EQU         -2                        ; for Arabic fonts, force left justification
  329.  
  330. ; new names for the Justification styles
  331. teFlushDefault    EQU            0                        ; flush according to the line direction
  332. teCenter        EQU            1                        ; center justify
  333. teFlushRight    EQU            -1                        ; flush right for all scripts
  334. teFlushLeft        EQU            -2                        ; flush left for all scripts
  335.  
  336. ; Text Edit Record
  337.  
  338. teDestRect        EQU         $0                        ; destination rectangle [8 bytes]
  339. teViewRect        EQU         $8                        ; view rectangle rectangle [8 bytes]
  340. teSelRect         EQU         $10                       ; select rectangle [8 bytes]
  341. teLineHite        EQU         $18                       ; lineheight [word]
  342. teAscent          EQU         $1A                       ; first baseline offset [word]
  343. teSelPoint        EQU         $1C                       ; selection point [long]
  344. teSelStart        EQU         $20                       ; selection start [word]
  345. teSelEnd          EQU         $22                       ; selection end [word]
  346. teActive          EQU         $24                       ; active [byte]
  347. teWordBreak       EQU         $26                       ; word break routine [pointer]
  348. teClikProc        EQU         $2A                       ; click loop routine [pointer]
  349. teClikTime        EQU         $2E                       ; time of last click [long]
  350. teClikLoc         EQU         $32                       ; location of double click [long]
  351. teCarTime         EQU         $34                       ; time for next caret toggle [long]
  352. teCarOn           EQU         $38                       ; is caret on? [byte]
  353. teCarAct          EQU         $39                       ; is caret active? [byte]
  354. teJust            EQU         $3A                       ; fill style [word]
  355. teLength          EQU         $3C                       ; length of text below [word]
  356. teTextH           EQU         $3E                       ; text [handle]
  357. teRecBack         EQU         $42                       ; unused [word]
  358. teRecLine         EQU         $44                       ; unused [word]
  359. teLftClick        EQU         $46                       ; click was to left? [byte]
  360. teLftCaret        EQU         $47                       ; caret was to left? [byte]
  361. teCROnly          EQU         $48                       ; <CR> only for line breaks? [byte]
  362. teFontStuff       EQU         $4A                       ; space for font specifier [8 bytes]
  363. teFont            EQU         $4A                       ; text font [word]
  364. teFace            EQU         $4C                       ; text face [word]
  365. teMode            EQU         $4E                       ; text mode [word]
  366. teSize            EQU         $50                       ; text size [word]
  367. teGrafPort        EQU         $52                       ; grafport for editting [pointer]
  368. teHiHook          EQU         $56                       ; hook for hilite routine [pointer]
  369. teCarHook         EQU         $5A                       ; hook for hilite routine [pointer]
  370. teNLines          EQU         $5E                       ; number of lines [word]
  371. teLines           EQU         $60                       ; line starts [words...]
  372. teRecSize         EQU         $68                       ; base size of a record w/o lines
  373.  
  374. ; Text Edit Globals
  375.  
  376. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  377. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  378. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  379. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  380. TEWdBreak         EQU         $AF6                      ; default word break routine [pointer]
  381. TEFindWord        EQU            $7F8                    ; low-memory hook for TextEdit's FindWord routine
  382.  
  383. ;new TE stuff
  384.  
  385. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  386. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  387. TEFlags           EQU         teRecBack                 ; turn whole byte into bit flags
  388. teFAutoPos        EQU         6                         ; set this bit for auto position/scroll
  389.  
  390. ;+ Dialog Manager
  391.  
  392. ; Item codes in item list
  393.  
  394. userItem          EQU         0                         ; application-defined (dialog only)
  395. ctrlItem          EQU         4                         ; must be added to following four items
  396. btnCtrl           EQU         0                         ; standard button
  397. chkCtrl           EQU         1                         ; standard check box
  398. radCtrl           EQU         2                         ; standard radio button
  399. resCtrl           EQU         3                         ; control defined in resource file
  400. statText          EQU         8                         ; static text
  401. editText          EQU         16                        ; editable text (dialog only)
  402. iconItem          EQU         32                        ; icon
  403. picItem           EQU         64                        ; quickdraw picture
  404. itemDisable       EQU         128                       ; add to any of above to disable
  405.  
  406.  
  407. ; Generic buttons
  408.  
  409. okButton          EQU         1                         ; OK button
  410. cancelButton      EQU         2                         ; Cancel button
  411.  
  412. ; Alert/Dialog Resource ID's
  413.  
  414. stopIcon          EQU         0                         ; stop icon ID
  415. noteIcon          EQU         1                         ; note icon ID
  416. cautionIcon       EQU         2                         ; caution icon ID
  417.  
  418. ; Dialog Template
  419.  
  420. dBounds           EQU         $0                        ; dialog bounds rectangle
  421. dWindProc         EQU         $8                        ; window proc ID
  422. dVisible          EQU         $A                        ; visible flag
  423. dGoAway           EQU         $C                        ; go away flag
  424. dRefCon           EQU         $E                        ; reference constant
  425. dItems            EQU         $12                       ; item list ID and handle
  426. dTitle            EQU         $14                       ; dialog window title
  427.  
  428. ; Alert Template
  429.  
  430. aBounds           EQU         $0                        ; alert box height and width
  431. aItems            EQU         $8                        ; item list ID
  432. aStages           EQU         $A                        ; stages word
  433.  
  434. ; Dialog/Alert Window Record
  435.  
  436. dWindow           EQU         $0                        ; window record
  437. items             EQU         $9C                       ; Item list [handle]
  438. teHandle          EQU         $A0                       ; textEdit object [handle]
  439. editField         EQU         $A4                       ; current field being edited [word]
  440. editOpen          EQU         $A6                       ; is editting open? [word]
  441. aDefItem          EQU         $A8                       ; default item for alerts [word]
  442. dWindLen          EQU         $AA                       ; dialog record length
  443.  
  444. ; In each item
  445.  
  446. itmHndl           EQU         0                         ; handle to the item
  447. itmRect           EQU         $4                        ; bounding rect of item
  448. itmType           EQU         $C                        ; item type
  449. itmData           EQU         $D                        ; item string, must be even length
  450.  
  451. ; Dialog Manager Globals
  452.  
  453. ANumber           EQU         $A98                      ; active alert ID [word]
  454. ACount            EQU         $A9A                      ; # times this alert called [word]
  455. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  456. DAStrings         EQU         $AA0                      ; paramText substutution strings [4 handles]
  457. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  458.  
  459.  
  460. ;+ Package Globals
  461.  
  462.  
  463. AppPacks          EQU         $AB8                      ; packages' code [8 handles]
  464.  
  465.  
  466. ;+ Finder related Globals
  467.  
  468.  
  469. FinderName        EQU         $2E0                      ; "Finder" name [STRING[15]]
  470. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  471.  
  472.  
  473. ;+ Miscellaneous Globals
  474.  
  475.  
  476. ApplScratch       EQU         $A78                      ; application scratch area [12 Bytes]
  477. ToolScratch       EQU         $9CE                      ; scratch area [8 bytes]
  478. TempRect          EQU         $9FA                      ; scratch rectangle [8 bytes]
  479.  
  480. ; System Patterns
  481.  
  482. sysPatListID      EQU         0                         ; ID of PAT# which contains 38 patterns
  483.  
  484.                   IF          wholeTools THEN
  485.  
  486. ; Resource Manager
  487.  
  488. mCCMask           EQU         $60                       ; mapCompact + mapChanged
  489. mChMask           EQU         $20                       ; mapChanged
  490. mCoMask           EQU         $40                       ; mapCompact
  491.  
  492. ; Font Manager
  493.  
  494. ; Font header values
  495.  
  496. propFont          EQU         $9000                     ; proportional font type
  497. prpFntH           EQU         $9001                     ; with height table
  498. prpFntW           EQU         $9002                     ; with width table
  499. prpFntHW          EQU         $9003                     ; with height & width table
  500. fixedFont         EQU         $B000                     ; fixed-pitch font type
  501. fxdFntH           EQU         $B001                     ; with height table
  502. fxdFntW           EQU         $B002                     ; with width table
  503. fxdFntHW          EQU         $B003                     ; with height & width table
  504. fontWid           EQU         $ACB0                     ; width-only font type
  505.  
  506. ; control/status codes for linkage w/font manager
  507.  
  508. fMgrCtl1          EQU         8                         ; printer drivers
  509.  
  510. ; Font Header Data Record
  511.  
  512. fFontType         EQU         0                         ; font type [word]
  513. fFirstChar        EQU         2                         ; ASCII code of first char [word]
  514. fLastChar         EQU         4                         ; ASCII code of last char [word]
  515. fWidMax           EQU         6                         ; maximum width of any char in pixels [word]
  516. fKernMax          EQU         8                         ; Negative of maximum character kern [word]
  517. fNDescent         EQU         10                        ; negative of descent [word]
  518. fFRectWidth       EQU         12                        ; width of font rectangle [word]
  519. fFRectHeight      EQU         14                        ; height of font rectangle [word]
  520. fOWTLoc           EQU         16                        ; offset to offset/width table [word]
  521. fAscent           EQU         18                        ; ascent above baseline in pixels [word]
  522. fDescent          EQU         20                        ; descent below baseline in pixels [word]
  523. fLeading          EQU         22                        ; space between lines in pixels [word]
  524. fRowWords         EQU         24                        ; row width of bit image / 2 [word]
  525.  
  526. ; Font Manager Input Record (CurFMInput)
  527.  
  528. fmInFamily        EQU         0                         ; family [word]
  529. fmInSize          EQU         2                         ; size [word]
  530. fmInFace          EQU         4                         ; face [word]
  531. fmInNeedBits      EQU         5                         ; needBits [byte]
  532. fmInDevice        EQU         6                         ; device number [byte]
  533. fmInNumer         EQU         8                         ; numerator of scale [fixed]
  534. fmInDenom         EQU         12                        ; denominator of scale [fixed]
  535.  
  536.  
  537. ; Font Manager Output record (FMgrOutRec)
  538.  
  539. fmOutError        EQU         0                         ; error code [word]
  540. fmOutFontH        EQU         2                         ; the actual font [handle]
  541. fmOutBold         EQU         6                         ; bolding factor [byte]
  542. fmOutItalic       EQU         7                         ; italic factor [byte]
  543. fmOutULOffset     EQU         8                         ; underline offset [byte]
  544. fmOutULShadow     EQU         9                         ; underline halo [byte]
  545. fmOutULThick      EQU         10                        ; underline thickness [byte]
  546. fmOutShadow       EQU         11                        ; shadow factor [byte]
  547. fmOutExtra        EQU         12                        ; extra horizontal width [byte]
  548. fmOutAscent       EQU         13                        ; height above baseline [byte]
  549. fmOutDescent      EQU         14                        ; height below baseline [byte]
  550. fmOutWidMax       EQU         15                        ; maximum width of character [byte]
  551. fmOutLeading      EQU         16                        ; space between lines [byte]
  552. fmOutNumer        EQU         18                        ; point for numerators of scale factor [long]
  553. fmOutDenom        EQU         22                        ; point for denominators of scale factor [long]
  554.  
  555.  
  556. ;WidthTable data structure
  557.  
  558. widTabData        EQU         0                         ;ARRAY[1..256] OF LONGINT character widths
  559. widTabFont        EQU         1024                      ;Handle font record used to build table
  560. widthSExtra       EQU         1028                      ;LONGINT space extra used for table
  561. widthStyle        EQU         1032                      ;LONGINT extra due to style
  562. widthFID          EQU         1036                      ;INTEGER font family ID
  563. widthFSize        EQU         1038                      ;INTEGER font size request
  564. widthFace         EQU         1040                      ;INTEGER style (face) request
  565. widthDevice       EQU         1042                      ;INTEGER device requested
  566. widthVInScale     EQU         1044                      ;FIXED scale factors requested
  567. widthHInScale     EQU         1048                      ;FIXED scale factors requested
  568. widthAFID         EQU         1052                      ;INTEGER actual font family ID for table
  569. widthFHand        EQU         1054                      ;Handle family record used to build up table
  570. widthUsedFam      EQU         1058                      ;BOOLEAN used fixed point family widths
  571. widthAFace        EQU         1059                      ;BYTE actual face produced
  572. widthVOutput      EQU         1060                      ;INTEGER vertical scale output value
  573. widthHOutput      EQU         1062                      ;INTEGER horizontal scale output value
  574. widthVFactor      EQU         1064                      ;INTEGER vertical scale output value
  575. widthHFactor      EQU         1066                      ;INTEGER horizontal scale output value
  576. widthASize        EQU         1068                      ;INTEGER actual size of actual font used
  577. ;widTabSize        EQU         1070                      ;INTEGER total size of table
  578.  
  579. ; Font Family Definition
  580.  
  581. ffFlags           EQU         0                         ; flags for family (word)
  582. ffFamID           EQU         2                         ; family ID number (word)
  583. ffFirst           EQU         4                         ; ASCII code of first character (word)
  584. ffLast            EQU         6                         ; ASCII code of last character (word)
  585. ffAscent          EQU         8                         ; maximum ascent expressed for 1 pt (word)
  586. ffDescent         EQU         10                        ; maximum descent expressed for 1 pt (word)
  587. ffLeading         EQU         12                        ; maximum leading expressed for 1 pt (word)
  588. ffWidMax          EQU         14                        ; maximum widMax expressed for 1 pt (word)
  589. ffWTabOff         EQU         16                        ; offset to width table (long)
  590. ffKernOff         EQU         20                        ; offset to kerning table (long)
  591. ffStylOff         EQU         24                        ; offset to style mapping table (long)
  592. ffStyleOff         EQU         24                        ; offset to style mapping table (long)
  593. ffProperty        EQU         28                        ; style property info (12 words)
  594. ffIntl            EQU         46                        ; reserved for international use (2 words)
  595. ffVersion         EQU         50                        ; FOND version number
  596.  
  597. ; Font Characterization Table
  598.  
  599. dpiVert           EQU         0                         ; vertical dots per inch [word]
  600. dpiHoriz          EQU         2                         ; horizontal dots per inch [word]
  601. boldChr           EQU         4                         ; bold characteristics [3 bytes]
  602. italChr           EQU         7                         ; italic characteristics [3 bytes]
  603. ; unused [3 bytes]
  604. outlineChr        EQU         13                        ; outline characteristics [3 bytes]
  605. shadowChr         EQU         16                        ; shadow characteristics [3 bytes]
  606. condChr           EQU         19                        ; condensed characteristics [3 bytes]
  607. extendChr         EQU         22                        ; extended characteristics [3 bytes]
  608. underChr          EQU         25                        ; underline characteristics [3 bytes]
  609.  
  610. ; Globals
  611.  
  612. CurFMFamily       EQU         $988                      ; current font family
  613. CurFMSize         EQU         $98A                      ; current font size
  614. CurFMFace         EQU         $98C                      ; current font face
  615. CurFMNeedBits     EQU         $98D                      ; boolean specifying whether it needs strike
  616. CurFMDevice       EQU         $98E                      ; current font device
  617. CurFMNumer        EQU         $990                      ; current numerator of scale factor
  618. CurFMDenom        EQU         $994                      ; current denominator of scale factor
  619. FOutRec           EQU         $998                      ; Font Manager output record
  620. FMDotsPerInch     EQU         $9B2                      ; h,v dotsPerInch of current device
  621. FMStyleTab        EQU         $9B6                      ; style heuristic table supplied by device
  622. RomFont0          EQU         $980                      ; system font [handle]
  623. GotStrike         EQU         $986                      ; Do we have the strike? [byte]
  624.  
  625.  
  626. ; Window Manager
  627.  
  628. ; Window Definition Procedure Messages
  629.  
  630. wDrawMsg          EQU         0                         ; draw yourself
  631. wHitMsg           EQU         1                         ; hit test
  632. wCalcRgnMsg       EQU         2                         ; recalculate your regions
  633. wInitMsg          EQU         3                         ; initialize yourself
  634. wDisposeMsg       EQU         4                         ; dispose any private data
  635. wGrowMsg          EQU         5                         ; drag out grow outline
  636. wGIconMsg         EQU         6                         ; draw the grow icon
  637. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  638. OldContent        EQU         $9EA                      ; saved content region [handle]
  639. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  640. CurDeKind         EQU         $A22                      ; window kind of deactivated window [word]
  641. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  642.  
  643. ; Menu Manager
  644.  
  645. ; Menu Definition Procedure Messages
  646.  
  647. mDrawMsg          EQU         0                         ; draw yourself
  648. mChooseMsg        EQU         1                         ; select an item
  649. mSizeMsg          EQU         2                         ; calculate your size
  650.  
  651. ; Menu Resource IDs
  652.  
  653. textMenuProc      EQU         0                         ; standard text menu MDEF ID
  654. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  655. SavedHandle       EQU         $A28                      ; saved bits under a menu [handle]
  656.  
  657. ;misc Menu stuff
  658.  
  659. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  660.  
  661. ; Control manager
  662.  
  663. ; Control Definition Procedure Messages
  664.  
  665. drawCtlMsg        EQU         0                         ; draw message
  666. hitCtlMsg         EQU         1                         ; hit test message
  667. calcCtlMsg        EQU         2                         ; calc region message
  668. newCtlMsg         EQU         3                         ; init message
  669. dispCtlMsg        EQU         4                         ; dispose any private data message
  670. posCtlMsg         EQU         5                         ; adjust indicator position message
  671. thumbCtlMsg       EQU         6                         ; calculate rectangles for thumb dragging
  672. dragCtlMsg        EQU         7                         ; custom drag message
  673. trackCtlMsg       EQU         8                         ; track yourself message
  674. calcWholeCtlMsg   EQU         10                        ; calc whole region message
  675. calcThumbCtlMsg   EQU         11                        ; calc indicator region message
  676.  
  677. ;stage definition--packed 2 to a byte, 4 stages in a word
  678.  
  679. volBits           EQU         3                         ; number of beeps
  680. alBit             EQU         4                         ; alert bit (put up box this time?)
  681. okDismissal       EQU         8                         ; bit for OK/Cancel default in each stage
  682.  
  683. ; DialogList Data Structure Definitions
  684.  
  685. dlgMaxIndex       EQU         0                         ; maximum index (=items-1) stored here
  686.  
  687.  
  688. SaveProc          EQU         $A90                      ; address of Save failsafe procedure
  689. SaveSP            EQU         $A94                      ; Safe SP for restart or save
  690.  
  691. ; DITLMethod 
  692. overlayDITL         EQU 0
  693. appendDITLRight     EQU 1
  694. appendDITLBottom     EQU 2
  695.  
  696. ; Dialog Selectors
  697. AppendDITL            EQU    $402
  698. CountDITL            EQU    $403
  699. ShortenDITL            EQU    $404
  700.  
  701. ; Package Manager
  702.  
  703. FPState           EQU         $A4A                      ; floating point state [6 bytes]
  704. App2Packs         EQU         $BC8                      ; $BC8-$BE7 eight more package handles
  705.  
  706. ; Resource Manager
  707.  
  708. RMGRPerm          EQU         $BA4                      ; (byte) - permission byte for OpenResFile
  709.  
  710. ; Miscellaneous Constants
  711.  
  712. screenRadius      EQU         $00100010                 ; rounded corners for desk area
  713.  
  714. ; Miscellaneous Globals
  715.  
  716. IconBitmap        EQU         $A0E                      ; bitmap used for plotting things
  717. TaskLock          EQU         $A62                      ; re-entering SystemTask [byte]
  718. CloseOrnHook      EQU         $A88                      ; hook for closing desk ornaments
  719.  
  720. ;new MacApp stuff
  721.  
  722. MAErrProc         EQU         $BE8                      ; (long) MacApp error proc address
  723. MASuperTab        EQU         $BEC                      ; (long) handle to MacApp superclass table
  724.  
  725.  
  726. ;**************** NEW TOOL EQUATES ************
  727.  
  728. ; Font Manager
  729.  
  730. ; addition to FMgrOutRec (was unused)
  731.  
  732. fmOutCurStyle     EQU         17                        ;style algorthmically applied by QuickDraw
  733.  
  734. ;___________________________________________________________________________
  735. ;
  736. ; Window Manager
  737.  
  738. ; auxWinRec structure
  739.  
  740. awNext            EQU         $0                        ;next in chain [Handle]
  741. awOwner           EQU         $4                        ;owner ID [WindowPtr]
  742. awCTable          EQU         $8                        ;color table [CTabHandle]
  743. dialogCItem       EQU         $C                        ;handle to dialog manager structures [handle]
  744. awFlags           EQU         $10                       ;handle for Ernie [handle]
  745. awResrv           EQU         $14                       ;for expansion [longint]
  746. awRefCon          EQU         $18                       ;user constant [longint]
  747. auxWinSize        EQU         $1C                       ;size of record
  748. AuxWinHead        EQU         $0CD0                     ;[handle] Window Aux List head
  749.  
  750. ; Window Part Identifiers which correlate color table entries with window elements
  751.  
  752. wContentColor     EQU         0
  753. wFrameColor       EQU         1
  754. wTextColor        EQU         2
  755. wHiliteColor      EQU         3
  756. wTitleBarColor    EQU         4
  757.  
  758.  
  759. ;___________________________________________________________________________
  760. ;
  761. ; Control Manager
  762.  
  763. ; auxCtlRec structure
  764.  
  765. acNext            EQU         $0                        ;next in chain [AuxCtlHndl]
  766. acOwner           EQU         $4                        ;owner ID [ControlHandle]
  767. acCTable          EQU         $8                        ;color table [CCTabHandle]
  768. acFlags           EQU         $C                        ;misc flag byte [word]
  769. acReserved        EQU         $E                        ;for expansion [LONGINT]
  770. acRefCon          EQU         $12                       ;user constant [LONGINT]
  771. acSize            EQU         $16                       ;size of record
  772. AuxCtlHead        EQU         $0CD4                     ;[handle] Control Aux List head
  773.  
  774. ; Here are some equates for the colors of control parts
  775.  
  776. cFrameColor       EQU         0
  777. cBodyColor        EQU         1
  778. cTextColor        EQU         2
  779. cThumbColor       EQU         3
  780.  
  781. ;___________________________________________________________________________
  782. ;
  783. ; Menu Manager
  784.  
  785. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  786. MBDFHndl          EQU         $0B58                     ; handle to current menu bar defproc
  787. MBSaveLoc         EQU         $0B5C                     ; handle to the mbarproc private data
  788. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  789. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  790. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  791.  
  792. ;
  793. ; color menu table equates (mct = menu color table)
  794. ;
  795. mctID             EQU         $0
  796. mctItem           EQU         $2
  797. mctRGB1           EQU         $4
  798. mctRGB2           EQU         $A
  799. mctRGB3           EQU         $10
  800. mctRGB4           EQU         $16
  801. mctReserved       EQU         $1C
  802. mctEntrySize      EQU         $1E
  803.  
  804. ;
  805. ; miscellaneous equates for hierarchical menus
  806. ;
  807.  
  808. hMenuCmd          EQU         $1B                       ; itemCmd == $1B ==> hierarchical menu for this item
  809. scriptMenuCmd     EQU         28                        ; itemCmd == $1C ==> item to be displayed in script font
  810. hierMenu          EQU         -1                        ; InsertMenu(handle, hierMenu), when beforeID ==
  811. ; hierMenu, the handle is inserted in the
  812. ; hierarchical menuList
  813. mPopUpMsg         EQU         3                         ; menu defProc messages - place yourself
  814. ; miscellaneous hierarchical equates
  815. ;
  816. hMenuMark         EQU         200                       ; 'ยป' = menu character indicates item with hierarchical menu
  817.  
  818. ;
  819. ; miscellaneous menubar equates
  820. ;
  821. mbMenu1Loc        EQU         $A                        ; first menu is 10 pixels from left side of screen
  822. mctAllIds         EQU         -97                       ; search for all IDs for the given Item
  823.  
  824. ;
  825. ; color menu table search (and destroy) messages (mct = menu color table)
  826. ;
  827. mctAllItems       EQU         -98                       ; search for all Items for the given ID
  828. mctLastIDIndic    EQU         -99                       ; last entry in color table has this in ID field
  829.  
  830. ;___________________________________________________________________________
  831. ;
  832. ; Text Edit
  833.  
  834. ; Set/Replace style modes
  835.  
  836. fontBit           EQU         0                         ; set font
  837. faceBit           EQU         1                         ; set face
  838. sizeBit           EQU         2                         ; set size
  839. clrBit            EQU         3                         ; set color
  840. addSizeBit        EQU         4                         ; add size mode
  841. toglBit           EQU         5                         ;set faces in toggle mode
  842. ; TESetStyle/TEContinuousStyle modes
  843. doFont            EQU         $01
  844. doFace            EQU         2
  845. doSize            EQU         4
  846. doColor           EQU         8
  847. doAll             EQU         15                        ; set font/face/size/color
  848. addSize           EQU         16
  849. doToggle          EQU         32
  850. ; New internal dispatch table
  851. ; --offsets into TEDispatchRec
  852. EOLHook           EQU         0                         ; [ProcPtr] TEEOLHook
  853. DRAWHook          EQU         4                         ; [ProcPtr] TEWidthHook
  854. WIDTHHook         EQU         8                         ; [ProcPtr] TEDrawHook
  855. HITTESTHook       EQU         12                        ; [ProcPtr] TEHitTestHook
  856. nWIDTHHook        EQU            24                        ; [ProcPtr] nTEWidthHook <6>
  857. TextWidthHook    EQU            28                        ; [ProcPtr] TETextWidthHook    <13>
  858. ; --selectors for TECustomHook
  859. IntEOLHook        EQU         0
  860. IntDrawHook       EQU         1
  861. IntWidthHook      EQU         2
  862. IntHitTestHook    EQU         3
  863. IntNWidthHook    EQU            6                        ; new version of WidthHook <6>
  864. IntTextWidthHook    EQU        7                        ; new TextWidthHook            <13>
  865. teDispatchH       EQU         teRecBack                 ; new handle to internal dispatch record
  866. ; handle to style record
  867.  
  868. teStylesH         EQU         $4A                       ; replaces teFont/teFace
  869.  
  870. ; offsets into TEStyleRec
  871.  
  872. nRuns             EQU         $0                        ; [INTEGER] # of entries in styleStarts array
  873. nStyles           EQU         $2                        ; [INTEGER] # of distinct styles
  874. styleTab          EQU         $4                        ; [STHandle] handle to distinct styles
  875. lhTab             EQU         $8                        ; [LHHandle] handle to line heights
  876. teRefCon          EQU         $C                        ; [LONGINT] reserved
  877. nullStyle         EQU         $10                       ; [NullStHandle] to style set at null selection
  878. runs              EQU         $14                       ; array of styles
  879.  
  880. ; offsets into NullStRec
  881.  
  882. teReserved        EQU         0                         ; [LONGINT] reserved for future expansion
  883. nullScrap         EQU         4                         ; [StScrpHandle] handle to scrap style table.
  884. nullStSize        EQU         8
  885.  
  886. ; offsets into StyleRun array
  887.  
  888. startChar         EQU         0                         ; [INTEGER] offset into text to start of style
  889. styleIndex        EQU         2                         ; [INTEGER] style index
  890. stStartSize       EQU         4                         ; size of a styleStarts entry
  891.  
  892. ; offsets into STElement
  893.  
  894. stCount           EQU         0                         ; [INTEGER] # of times this style is used
  895. stHeight          EQU         2                         ; [INTEGER] line height
  896. stAscent          EQU         4                         ; [INTEGER] ascent
  897. stFont            EQU         6                         ; [INTEGER] font
  898. stFace            EQU         8                         ; [Style] face
  899. stSize            EQU         10                        ; [INTEGER] size
  900. stColor           EQU         12                        ; [RGBColor] color
  901. stRecSize         EQU         18                        ; size of a teStylesRec
  902.  
  903. ; offsets into TextStyle
  904.  
  905. tsFont            EQU         0                         ; [INTEGER] font
  906. tsFace            EQU         2                         ; [Style] face
  907. tsSize            EQU         4                         ; [INTEGER] size
  908. tsColor           EQU         6                         ; [RGBColor] color
  909. styleSize         EQU         12                        ; size of a StylRec
  910.  
  911. ; offsets into StScrpRec
  912.  
  913. scrpNStyles       EQU         0                         ; [INTEGER] # of styles in scrap
  914. scrpStyleTab      EQU         2                         ; [ScrpSTTable] start of scrap styles array
  915.  
  916. ; offsets into scrpSTElement
  917.  
  918. scrpStartChar     EQU         0                         ; [LONGINT] char where this style starts
  919. scrpHeight        EQU         4                         ; [INTEGER] line height
  920. scrpAscent        EQU         6                         ; [INTEGER] ascent
  921. scrpFont          EQU         8                         ; [INTEGER] font
  922. scrpFace          EQU         10                        ; [Style] face
  923. scrpSize          EQU         12                        ; [INTEGER] size
  924. scrpColor         EQU         14                        ; [RGBColor] color
  925. scrpRecSize       EQU         20                        ; size of a scrap record
  926.  
  927. teFAutoScr            EQU        0                        ; (00000001b)
  928. ; feature definitions for TEFeatureFlag
  929. teFTextBuffering  EQU         1                         ; (00000010b)
  930. teFOutlineHilite  EQU         2                         ; (00000100b)
  931. teFInlineInput      EQU        3                        ; (00001000b)
  932. teFUseTextServices    EQU        4                        ; (00010000b)
  933.  
  934. ; action for the new "bit (un)set" interface, TEFeatureFlag
  935. TEBitClear        EQU         0
  936. TEBitSet          EQU         1                         ; set the selector bit.
  937. TEBitTest         EQU         -1                        ; no change; just return the present value
  938.  
  939. ; constants for identifying the routine that called FindWord <5>
  940. teWordSelect EQU        4                        ; clickExpand to select word
  941. teWordDrag     EQU        8                        ; clickExpand to drag new word
  942. teFromFind     EQU        12                        ; FindLine called it ($0C)
  943. teFromRecal     EQU        16                        ; RecalLines called it ($10)
  944.  
  945. ; Text Edit Selectors:
  946.  
  947. teStylPaste      EQU         0
  948. teStylePaste      EQU         0
  949. teSetStyle        EQU         1
  950. teReplaceStyle    EQU         2
  951. teGetStyle        EQU         3
  952. getStylHandle    EQU         4
  953. getStyleHandle    EQU         4
  954. setStylHandle    EQU         5
  955. setStyleHandle    EQU         5
  956. getStylScrap     EQU         6
  957. getStyleScrap     EQU         6
  958. teStylInsert     EQU         7
  959. teStyleInsert     EQU         7
  960. teGetPoint        EQU         8
  961. teGetHeight       EQU         9
  962.  
  963. teContinuousStyle EQU         10
  964. setStyleScrap     EQU         11
  965. teCustomHook      EQU         12
  966. teNumStyles       EQU         13
  967. teFeatureFlag    EQU            14                        ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  968.  
  969.                   MACRO
  970.                   _TEContinuousStyle
  971.                   MOVE.W      #teContinuousStyle,-(SP)
  972.                   DC.W        $A83D                     ; _TEDispatch
  973.                   ENDM
  974.  
  975.                   MACRO
  976.                   _SetStyleScrap
  977.                   MOVE.W      #setStyleScrap,-(SP)
  978.                   DC.W        $A83D                     ; _TEDispatch
  979.                   ENDM
  980.  
  981.                   MACRO
  982.                   _TECustomHook
  983.                   MOVE.W      #teCustomHook,-(SP)
  984.                   DC.W        $A83D                     ; _TEDispatch
  985.                   ENDM
  986.  
  987.                   MACRO
  988.                   _TENumStyles
  989.                   MOVE.W      #teNumStyles,-(SP)
  990.                   DC.W        $A83D                     ; _TEDispatch
  991.                   ENDM
  992.  
  993. ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  994.                   MACRO
  995.                   _TEFeatureFlag
  996.                   MOVE.W      #teFeatureFlag,-(SP)
  997.                   DC.W        $A83D                     ; _TEDispatch
  998.                   ENDM
  999.  
  1000.                   MACRO
  1001.                   _TEStylPaste
  1002.                   MOVE.W      #teStylPaste,-(SP)
  1003.                   DC.W        $A83D                     ; _TEDispatch
  1004.                   ENDM
  1005.  
  1006.                   MACRO
  1007.                   _TEStylePaste
  1008.                   MOVE.W      #teStylePaste,-(SP)
  1009.                   DC.W        $A83D                     ; _TEDispatch
  1010.                   ENDM
  1011.  
  1012.                   MACRO
  1013.                   _TESetStyle
  1014.                   MOVE.W      #teSetStyle,-(SP)
  1015.                   DC.W        $A83D                     ; _TEDispatch
  1016.                   ENDM
  1017.  
  1018.                   MACRO
  1019.                   _TEReplaceStyle
  1020.                   MOVE.W      #teReplaceStyle,-(SP)
  1021.                   DC.W        $A83D                     ; _TEDispatch
  1022.                   ENDM
  1023.  
  1024.                   MACRO
  1025.                   _TEGetStyle
  1026.                   MOVE.W      #teGetStyle,-(SP)
  1027.                   DC.W        $A83D                     ; _TEDispatch
  1028.                   ENDM
  1029.  
  1030.                   MACRO
  1031.                   _GetStylHandle
  1032.                   MOVE.W      #getStylHandle,-(SP)
  1033.                   DC.W        $A83D                     ; _TEDispatch
  1034.                   ENDM
  1035.  
  1036.                   MACRO
  1037.                   _GetStyleHandle
  1038.                   MOVE.W      #getStyleHandle,-(SP)
  1039.                   DC.W        $A83D                     ; _TEDispatch
  1040.                   ENDM
  1041.  
  1042.                   MACRO
  1043.                   _SetStylHandle
  1044.                   MOVE.W      #setStylHandle,-(SP)
  1045.                   DC.W        $A83D                     ; _TEDispatch
  1046.                   ENDM
  1047.  
  1048.                   MACRO
  1049.                   _SetStyleHandle
  1050.                   MOVE.W      #setStyleHandle,-(SP)
  1051.                   DC.W        $A83D                     ; _TEDispatch
  1052.                   ENDM
  1053.  
  1054.                   MACRO
  1055.                   _GetStylScrap
  1056.                   MOVE.W      #getStylScrap,-(SP)
  1057.                   DC.W        $A83D                     ; _TEDispatch
  1058.                   ENDM
  1059.  
  1060.                   MACRO
  1061.                   _GetStyleScrap
  1062.                   MOVE.W      #getStyleScrap,-(SP)
  1063.                   DC.W        $A83D                     ; _TEDispatch
  1064.                   ENDM
  1065.  
  1066.                   MACRO
  1067.                   _TEStylInsert
  1068.                   MOVE.W      #teStylInsert,-(SP)
  1069.                   DC.W        $A83D                     ; _TEDispatch
  1070.                   ENDM
  1071.  
  1072.                   MACRO
  1073.                   _TEStyleInsert
  1074.                   MOVE.W      #teStyleInsert,-(SP)
  1075.                   DC.W        $A83D                     ; _TEDispatch
  1076.                   ENDM
  1077.  
  1078.                   MACRO
  1079.                   _TEGetPoint
  1080.                   MOVE.W      #teGetPoint,-(SP)
  1081.                   DC.W        $A83D                     ; _TEDispatch
  1082.                   ENDM
  1083.  
  1084.                   MACRO
  1085.                   _TEGetHeight
  1086.                   MOVE.W      #teGetHeight,-(SP)
  1087.                   DC.W        $A83D                     ; _TEDispatch
  1088.                   ENDM
  1089.  
  1090.                 MACRO
  1091.                 _AppendDITL
  1092.                 MOVE.W        #AppendDITL,-(SP)
  1093.                 MOVE.L        SP,A0
  1094.                 _CommToolboxDispatch
  1095.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1096.                 ENDM
  1097.                 
  1098.                 MACRO
  1099.                 _CountDITL
  1100.                 MOVE.W        #CountDITL,-(SP)
  1101.                 MOVE.L        SP,A0
  1102.                 _CommToolboxDispatch
  1103.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1104.                 ENDM
  1105.                 
  1106.                 MACRO
  1107.                 _ShortenDITL
  1108.                 MOVE.W        #ShortenDITL,-(SP)
  1109.                 MOVE.L        SP,A0
  1110.                 _CommToolboxDispatch
  1111.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1112.                 ENDM
  1113.  
  1114.                   ENDIF
  1115.  
  1116.     ENDIF    ; ...already included